html, body {
  background: #fff;
}

/* 主布局容器 */
.main-layout {
  display: flex;
  min-height: 100vh;
  background: #fff;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.left-panel {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: row;
  width: 300px;
  background: none;
  z-index: 100;
  padding: 0;
  margin: 0;
  border: none;
}

/* 导航栏部分 - 固定宽度 */
.nav-sidebar {
  width: 80px;
  background: #f1f5ff;
  border-right: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  padding: 0;
  margin: 0;
  border-left: none;
}
.nav-sidebar.collapsed {
  width: 80px;
}

.nav-list {
  padding: 16px 0;
  flex: 1;
  list-style: none;
  margin: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  margin: 4px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #495057;
  position: relative;
}

.nav-item:hover {
  background-color: #e9ecef;
  color: #007bff;
}

.nav-item.active {
  background-color: #e3f2fd;
  color: #1976d2;
}

.nav-item.active .nav-icon {
  color: #1976d2;
}

.nav-item.active .nav-label {
  color: #1976d2;
  font-weight: 600;
}

/* 导航内容容器 */
.nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
  color: #6c757d;
  transition: color 0.2s ease;
}

.nav-label {
  font-size: 12px;
  font-weight: 500;
  color: #6c757d;
  text-align: center;
  line-height: 1.2;
  transition: color 0.2s ease;
  white-space: nowrap;
}

/* 收起展开按钮样式 */
.toggle-item {
  margin-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 16px;
}

.toggle-item .toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  width: 100%;
  height: 100%;
}

.toggle-item .toggle-btn:hover {
  background-color: #e9ecef;
}

.hamburger-icon {
  font-size: 18px;
  color: #495057;
}

/* 创客贴部分 - 可展开收起 */
.chuangketie-panel {
  width: 220px;
  min-width: 0;
  max-width: none;
  padding: 0 0 24px 0;
  background: #f1f5ff;
  transition: width 0.3s, padding 0.3s;
  box-sizing: border-box;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
}
.nav-sidebar.collapsed + .chuangketie-panel {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  opacity: 0;
  visibility: hidden;
}

.chuangketie-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0 16px 0;
  transition: padding 0.3s;
}
.nav-sidebar.collapsed + .chuangketie-panel .chuangketie-header {
  padding: 16px 0 8px 0;
}
.chuangketie-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.logo-icon {
  font-size: 32px;
  color: #2260ff;
}
.logo-text {
  font-size: 22px;
  font-weight: bold;
  color: #222;
  letter-spacing: 2px;
}
.chuangketie-create-btn {
  width: 180px;
  background: #2260ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  margin-bottom: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(34,96,255,0.08);
  transition: background 0.2s, width 0.3s;
}
.nav-sidebar.collapsed + .chuangketie-panel .chuangketie-create-btn {
  width: 40px;
  min-width: 40px;
  padding: 8px 0;
  font-size: 0;
  justify-content: center;
}
.nav-sidebar.collapsed + .chuangketie-panel .chuangketie-create-btn .create-btn-icon {
  font-size: 20px;
  display: inline;
}
.nav-sidebar.collapsed + .chuangketie-panel .chuangketie-create-btn span:not(.create-btn-icon) {
  display: none;
}
.chuangketie-create-btn:hover {
  background: #1746b8;
}
.create-btn-icon {
  font-size: 20px;
  font-weight: bold;
}
.chuangketie-login {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.chuangketie-login .login-btn,
.chuangketie-login .register-btn {
  background: none;
  border: none;
  color: #2260ff;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.chuangketie-login .login-btn:hover,
.chuangketie-login .register-btn:hover {
  background: #e6edff;
}
.chuangketie-login .user-info {
  color: #2260ff;
  font-size: 15px;
  font-weight: 500;
}

.template-menu-panel {
  margin-top: 8px;
  padding: 0 0 0 0;
  transition: padding 0.3s;
}
.nav-sidebar.collapsed + .chuangketie-panel .template-menu-panel {
  padding: 0 0 0 0;
}

.template-menu-group {
  margin-bottom: 18px;
}
.template-menu-group-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #222;
  cursor: pointer;
  padding: 0 18px 0 18px;
  height: 38px;
  border-radius: 8px;
  transition: background 0.2s, font-size 0.3s;
  user-select: none;
}
.nav-sidebar.collapsed + .chuangketie-panel .template-menu-group-title {
  justify-content: center;
  font-size: 20px;
  padding: 0;
}
.template-menu-group-title:hover {
  background: #e6edff;
}
.menu-group-icon {
  font-size: 18px;
  margin-right: 4px;
}
.nav-sidebar.collapsed + .chuangketie-panel .template-menu-group-title .menu-group-icon {
  margin-right: 0;
}
.template-menu-group-title span:not(.menu-group-icon):not(.template-menu-arrow) {
  transition: opacity 0.2s;
}
.nav-sidebar.collapsed + .chuangketie-panel .template-menu-group-title span:not(.menu-group-icon):not(.template-menu-arrow) {
  opacity: 0;
  width: 0;
  overflow: hidden;
  display: inline-block;
}
.template-menu-arrow {
  margin-left: auto;
  font-size: 14px;
  color: #888;
  transition: opacity 0.2s;
}
.nav-sidebar.collapsed + .chuangketie-panel .template-menu-arrow {
  opacity: 0;
}
.template-menu-list {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
  transition: padding 0.3s;
}
.nav-sidebar.collapsed + .chuangketie-panel .template-menu-list {
  padding: 0;
}
.template-menu-item {
  font-size: 15px;
  color: #222;
  padding: 10px 40px;
  border-radius: 8px;
  margin-bottom: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, font-size 0.3s;
}
.nav-sidebar.collapsed + .chuangketie-panel .template-menu-item {
  font-size: 0;
  padding: 8px 0;
  text-align: center;
}
.nav-sidebar.collapsed + .chuangketie-panel .template-menu-item.active {
  background: #e0ebfc;
  color: #2081fc;
}
.nav-sidebar.collapsed + .chuangketie-panel .template-menu-item.active .menu-group-icon {
  color: #2081fc;
}
.nav-sidebar.collapsed + .chuangketie-panel .template-menu-item span {
  display: none;
}
.template-menu-item:hover {
  background: #f0f6ff;
  color: #2260ff;
}

/* 面板头部 */
.panel-header {
  padding: 16px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.logo-icon {
  font-size: 20px;
  color: #007bff;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: #212529;
}

/* 创建设计按钮区域 */
.create-section {
  padding: 16px;
  border-bottom: 1px solid #e9ecef;
  flex-shrink: 0;
}

.create-design-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.create-design-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.create-design-btn.collapsed {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.create-icon {
  font-size: 16px;
}

.create-text {
  white-space: nowrap;
}

/* 中间内容区域 */
.panel-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

/* 底部推广卡片 */
.promo-card {
  margin: 16px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  position: relative;
}

.promo-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.promo-icon {
  font-size: 16px;
  color: #007bff;
}

.promo-icon-light {
  font-size: 14px;
  color: #ffc107;
}

.promo-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.promo-title {
  font-size: 12px;
  font-weight: 500;
  color: #212529;
}

.promo-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #007bff;
}

.promo-desc {
  font-size: 10px;
  color: #6c757d;
  margin-top: 2px;
}

/* 主内容区域 */
.main-content {
  flex: 1;
  min-width: 0;
  background: #fff;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  margin-left: 300px;
  min-height: 60vh;
  /* overflow-y: auto; */
}

.main-content.expanded {
  margin-left: 80px;
}

/* 内容头部 */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.content-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a202c;
}

.create-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* 内容主体 */
.content-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.recent-designs,
.recent-used {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.recent-designs h2,
.recent-used h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 16px;
}

.content-box {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

.welcome-message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 500;
  color: #1a202c;
}

.welcome-icon {
  font-size: 20px;
}

.content-box p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .left-panel {
    width: 270px;
  }
  .nav-sidebar {
    width: 70px;
  }
  .chuangketie-panel {
    width: 200px;
  }
  .main-content {
    margin-left: 270px;
  }
  .main-content.expanded {
    margin-left: 70px;
  }
}

@media (max-width: 480px) {
  .left-panel {
    width: 100%;
    position: relative;
    height: auto;
    flex-direction: row;
  }
  .nav-sidebar {
    width: 100%;
    height: auto;
  }
  .chuangketie-panel {
    width: 100%;
    height: auto;
  }
  .chuangketie-panel.collapsed {
    width: 0;
  }
  .main-content {
    margin-left: 0;
  }
  .main-content.expanded {
    margin-left: 0;
  }
  .main-layout {
    flex-direction: column;
  }
} 

.header-search {
  display: flex;
  align-items: center;
  background: #f7f9fb;
  border-radius: 16px;
  padding: 0 16px;
  height: 44px;
  min-width: 420px;
  margin-left: 24px;
  
}
.search-icon {
  font-size: 20px;
  color: #bfc8d6;
  margin-right: 8px;
  
}
.search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: #6b7a99;
  flex: 1;
  padding: 8px 0;
  width: 560px;
}
.search-camera {
  font-size: 20px;
  color: #bfc8d6;
  margin-left: 8px;
  cursor: pointer;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 32px;
}
.header-link {
  color: #222;
  font-size: 15px;
  text-decoration: none;
  margin: 0 4px;
  transition: color 0.2s;
}
.header-link:hover {
  color: #2081fc;
}
.header-vip {
  background: #fbe7d2;
  color: #a86a2c;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  margin: 0 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.header-vip:hover {
  background: #ffe7c2;
}
.header-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}
.account-btn {
  background: #f7f9fb;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 15px;
  color: #222;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
.account-btn:hover {
  background: #e0ebfc;
  color: #2081fc;
}

@media (max-width: 900px) {
  .main-header { flex-direction: column; height: auto; padding: 8px; }
  .header-search { min-width: 200px; margin-left: 0; margin-bottom: 8px; }
  .header-actions { margin-left: 0; gap: 8px; }
} 